using System;
using SMS.SMPPClient.PDU;

namespace SMS.SMPPClient.PDU.Incoming
{
    /// <summary>
    /// Defines the response PDU from an enquire_link.
    /// </summary>
    public class SMPPEnquireLinkResponse : SMPPResponse
    {

        /// <summary>
        /// Creates an enquire_link PDU.
        /// </summary>
        public SMPPEnquireLinkResponse(byte[] response)
            : base(response)
        {
            DecodeSMSCResponse();
        }

        /// <summary>
        /// Decodes the enquire_link response from the SMSC.
        /// </summary>
        protected override void DecodeSMSCResponse()
        {
            tlvTable.TranslateTLVDataIntoTable(ResponseAfterHeader);
        }
    }
}
